﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyThuVien.BUS;
using QuanLyThuVien;
using QuanLyThuVien.VO;

namespace QuanLyThuVien
{
    public partial class frmThemSach : Form
    {
        public frmThemSach()
        {
            InitializeComponent();
        }

        private void btnHuy_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            busSach busSach = new busSach();
            Sach Sach = new Sach(txtMaSach.Text, txtTenSach.Text, txtTacGia.Text, txtNhaXuatBan.Text);
            busSach.ThemSach(Sach);
        }
    }
}
